{template 'public/header'}

{template 'public/comhead'}

<link rel="stylesheet" type="text/css" href="../addons/zh_tcwq/template/public/ygcss.css">

<style type="text/css">

    input[type="radio"] + label::before {

        content: "\a0"; /*不换行空格*/

        display: inline-block;

        vertical-align: middle;

        font-size: 16px;

        width: 1em;

        height: 1em;

        margin-right: .4em;

        border-radius: 50%;

        border: 2px solid #ddd;

        text-indent: .15em;

        line-height: 1; 

    }

    input[type="radio"]:checked + label::before {

        background-color: #44ABF7;

        background-clip: content-box;

        padding: .1em;

        border: 2px solid #44ABF7;

    }

    input[type="radio"] {

        position: absolute;

        clip: rect(0, 0, 0, 0);

    }

</style>



<ul class="nav nav-tabs">    

    <span class="ygxian"></span>

    <div class="ygdangq">当前位置:</div>

    <li class="active"><a href="javascript:void(0);">优惠券设置</a></li>

</ul>

<div class="main">

    <form action="" method="post" class="form-horizontal form" enctype="multipart/form-data">

        <!--<input type="hidden" name="parentid" value="{$parent['id']}" />-->

        <div class="panel panel-default ygdefault">

            <div class="panel-heading wyheader">

                优惠券设置

            </div>

            <div class="panel-body">

        

             <div class="form-group">

                    <label for="lastname" class="col-sm-2 control-label">优惠券</label>

                    <div class="col-sm-10">

                         <label class="radio-inline">

                            <input type="radio" id="emailwy1" name="is_coupon" value="1" {if $item['is_coupon']==1}checked{/if} />

                            <label for="emailwy1">开启</label>

                        </label>

                        <label class="radio-inline">

                            <input type="radio" id="emailwy2" name="is_coupon" value="2" {if $item['is_coupon']==2|| empty($item['is_coupon'])}checked{/if} />

                            <label for="emailwy2">关闭</label>

                        </label>

                        <div class="help-block">*是否开启优惠券，选择关闭商家不显示优惠券功能</div>

                    </div>

                </div>  
                 <div class="form-group">
                    <label for="lastname" class="col-sm-2 control-label">优惠券审核</label>
                    <div class="col-sm-10">
                         <label class="radio-inline">
                            <input type="radio" id="is_yhqsh1" name="is_yhqsh" value="1" {if $item['is_yhqsh']==1 || empty($item['is_yhqsh'])}checked{/if} />
                            <label for="is_yhqsh1">开启</label>
                        </label>
                        <label class="radio-inline">
                            <input type="radio" id="is_yhqsh2" name="is_yhqsh" value="2" {if $item['is_yhqsh']==2}checked{/if} />
                            <label for="is_yhqsh2">关闭</label>
                        </label>
                        <span class="help-block">*是否开启优惠券审核，关闭则商家发券不需要后台审核</span>
                    </div>
                </div> 

                <div class="form-group">

                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">优惠券图片</label>

                    <div class="col-sm-9">

                        {php echo tpl_form_field_image('coupon_img', $item['coupon_img'])}

                        <span class="help-block">*建议尺寸410*260</span>

                    </div>

                </div>



            </div>



        </div>



        <div class="form-group">

            <input type="submit" name="submit" value="提交" class="btn col-lg-3" style="color: white;background-color: #44ABF7;"/>

            <input type="hidden" name="token" value="{$_W['token']}" />

            <input type="hidden" name="id" value="{$item['id']}" />

        </div>

    </form>

</div>

<script type="text/javascript">

    $(function(){

        $("#frame-9").show();

        $("#yframe-9").addClass("wyactive");

    })

</script>